#include <stdio.h>
#include "dbl.h"
int main(int argc, const char * argv[])
{
    dplist* head = dplistcreat();
    dplisthead(head,10);
    dplisthead(head,20);
    dplisthead(head,30);
    dplisthead(head,40);
    dplisthead(head,50);
    dplistshow(head);

    dplisttail(head,88);
    dplisttail(head,90); 
    dplisttail(head,77);
    dplistshow(head); 

    dblinsertpos(head,100,0);
    dplistshow(head);
    int data;
    data = dpldeletehead(head);
    printf("头删除的数据为 %d\n",data);
    dplistshow(head);

    data = dpldeletetail(head);
    printf("尾删除的数据为 %d\n",data);
    dplistshow(head);

    data = dbldeletepos(head,3);
    printf("按位置删除的数据为 %d\n",data);
    dplistshow(head);

    reseverlist(head);
    dplistshow(head);


    return 0;
}